// The following ifdef block is the standard way of creating macros which make exporting 
// from a DLL simpler. All files within this DLL are compiled with the CONTROLLER_EXPORTS
// symbol defined on the command line. this symbol should not be defined on any project
// that uses this DLL. This way any other project whose source files include this file see 
// CONTROLLER_API functions as being imported from a DLL, whereas this DLL sees symbols
// defined with this macro as being exported.
#ifdef CONTROLLER_EXPORTS
#define CONTROLLER_API __declspec(dllexport)
#else
#define CONTROLLER_API __declspec(dllimport)
#endif

#ifndef CONTROLLERBASE_H
#define CONTROLLERBASE_H

#include "..\Infobus\Infobus.h"

class CONTROLLER_API ControllerBase : public IListener
{
public:
  ControllerBase();
  ~ControllerBase();
  bool isMaster();
  virtual void onMessage(const char * m) = 0;
  virtual const char* getType() { return "Controller"; }
  void setMaster(bool promote);
};

#endif